<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/gbcp_view_total.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/gbcp_view_total.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'xgh',
                footer: "Foots",
                cnName: '测评分数统计',
                name: 'jrtable/gbcp_view_total',
                url: "/gbcp_view_total/",
                sortName: "yjjg"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'xgh',title:'员工号',type:'string',sort:true,width:220,require:true,align:'left',sort:true},
                       {field:'name',title:'姓名',type:'string',link:true,sort:true,width:220,align:'left'},
                       {field:'yjjg',title:'所属家机构',type:'string',sort:true,width:220,align:'left'},
                       {field:'total',title:'分数',type:'int',sort:true,width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
